{% extends "models/front_simple.html" %}
{% block title %}Mes documents{% endblock %}
{% block content %}

{% for document in documents %}
<div class="bloc-document">
	<div class="titre"><a href="document_get_file.php?id={{ document.id_document }}">{{ document.titre }}</a></div>
	<div>
		<div class="icone">
			<a href="document_get_file.php?id={{ document.id_document }}"><img src="images/icons/files/{{ document.getFileType() }}.png" width="64" height="64"/></a>
		</div>
		<div style="float: left" class="informations">
			<div class="description">{{ document.description }}</div>
			<div>
				<a href="document_edit.php?id={{ document.id_document }}" class="action-button edit" >
					<img src="images/icons/edit.png" width="12" height="12" /> Modifier
				</a>
				<a href="document_delete.php?id={{ document.id_document }}" class="action-button delete link-confirm" confirm="Voulez-vous supprimer définitivement le document {{ document.titre }}?">
					<img src="images/icons/delete.png" width="12" height="12"/> Supprimer
				</a>
			</div>

		</div>
		<div style="clear: both"></div>
	</div>
</div>
{% endfor %}

{% endblock %}